package com.chuangjiangx.member.manager.web.web.basic.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Auther: YZJ
 * @Date: 2018/8/28 23:54
 * @Description: 修改支付即会员规则参数对象
 */
@ApiModel
@Setter
@Getter
@Data
public class ModifyPayGiftCardRuleRequest {
    /**
     * id
     */
    @ApiModelProperty(value = "id", name = "id", required = true)
    @NotNull(message = "{member.id.null}")
    private Long id;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间", name = "beginTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "{member.startTime.null}")
    private Date beginTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间", name = "endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "{member.endTime.null}")
    private Date endTime;

    /**
     * 最小金额
     */
    @ApiModelProperty(value = "最小金额,不设置填0", name = "leastCost")
    @NotNull(message = "{leastCost.null}")
    private BigDecimal leastCost;

    /**
     * 最大金额
     */
//    @ApiModelProperty(value = "最大金额", name = "maxCost")
//    @NotNull(message = "{maxCost.null}")
//    private BigDecimal maxCost;

    /**
     * 领卡渠道（1:微信推送 2：支付成功页面）
     */
    @ApiModelProperty(value = "领卡渠道（1:微信推送 2：支付成功页面）", name = "getChannelList", example = "1,2")
    @NotNull(message = "getChannelList.limit")
    private String getChannelList;
}
